package Dao;

import java.util.List;

import enitys.Course;

public interface CouserDao {

	/**
	 * 
	 * 显示所有课程信息
	 * @param course
	 * @return
	 * @throws Exception
	 */
	public List<Course> courseallinfo() throws Exception; 
	
	
	/**
	 * 按照课程号来查询课程信息
	 * @param id
	 * @return
	 */
	public List<Course> findCourseInfoById(int id);

	
	public boolean AddCourseInfo(Course course);
	/**
	 * 
	 * 管理员修改课程信息
	 * @param course
	 * @return
	 * @throws Exception
	 */
	public boolean modifCourseinfo(Course course) throws Exception;
	
	
	
	/**
	 * 
	 * 管理员删除课程信息
	 * @param course
	 * @return
	 * @throws Exception
	 */
	public int deleteCourseinfo(int id) throws Exception;
	
}
